Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport 0.3: Update nixpkgs 24.11 #112

Merged
merged 3 commits into from
Jan 3, 2025
Merged

Conversation

ThetaSinner
Copy link
Member

No description provided.

@ThetaSinner ThetaSinner requested a review from a team January 3, 2025 10:30
@@ -101,7 +105,7 @@
buildInputs = [
pkgs.go
pkgs.perl
];
] ++ (pkgs.lib.optionals pkgs.stdenv.isDarwin apple_sdk);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: Do we need to check isDarwin and the system? Also, if it's just one package then we can use the lib.optional function instead.

Suggested change
] ++ (pkgs.lib.optionals pkgs.stdenv.isDarwin apple_sdk);
]
# On intel macs, the default SDK is still 10.12 and Holochain won't build against that because we're
# using a newer Go version. So override with the newest SDK available for x86_64-darwin.
++ (pkgs.lib.optional (if system == "x86_64-darwin") pkgs.apple-sdk_10_15);

This really is just a style thing though so I leave the decision up to you 🙂

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 It's a little more precise, though it makes no difference to the aarch64 systems.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't really no, but since this change is being backported, I'd rather not just fix this on 0.3. I'll put a PR to tidy this up on main and leave main-0.3 and main-0.4 as they are

Comment on lines +90 to +93

# On intel macs, the default SDK is still 10.12 and Holochain won't build against that because we're
# using a newer Go version. So override with the newest SDK available for x86_64-darwin.
apple_sdk = if system == "x86_64-darwin" then [ pkgs.apple-sdk_10_15 ] else [ ];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the comment below.

Suggested change
# On intel macs, the default SDK is still 10.12 and Holochain won't build against that because we're
# using a newer Go version. So override with the newest SDK available for x86_64-darwin.
apple_sdk = if system == "x86_64-darwin" then [ pkgs.apple-sdk_10_15 ] else [ ];

@ThetaSinner ThetaSinner merged commit 1c31c39 into main-0.3 Jan 3, 2025
17 checks passed
@ThetaSinner ThetaSinner deleted the update-nixpkgs-24.11 branch January 3, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants